Page({
  data: {

   lst:{}

  },
 onLoad(query) {
 
  //?cont='+that.otdate+'& contentStr='+ that.contentStr
   
   console.log(query.id);
 var  that=this;
  dd.httpRequest({

        
          //提交工号和授权码，如果授权码和工号对上了就返回姓名，然后保存工号到缓存
          //url: 'https://oapi.dingtalk.com/user/getuserinfo?access_token=' + access_token + '&code=' + code,
        
          url:'http://ding.tida-lighting.com/api/Approve/MyApplydetail?id='+query.id,
          success: function (res) {
         
         // console.log(that.data.staffid);
          that.setData({
             lst:res.data,
            
          });

          console.log(res.data);
         },
        fail: (err) => {
           //dd.alert({content: JSON.stringify(err)})
           console.log(err);
        }

     });//发起结束
  },back:function()
  {

dd.navigateBack({
      delta: 2
     });

  }




 



  
});
